<?php
/**
 * Идентификаторы социальных сетей
 *
 * @author tonatos
 */
class c_web_user_loginza_model extends c_base_model{

    public static $m_table = 'web_user_loginza';
    
    public $id;
    public $id_user;
    public $identity;
    public $provider;
    public $activated;
    public $code;
    public $photo;

    public function find_by($where){
        global $modx;
        $data = $modx->db->get_record($this->m_table,$where);
        if ($data!==false){
            foreach ($data as $key=>$value){
                $this->$key = $value;
            }
            return true;
        }
        return false;
    }
    
}
?>

